package com.kehutong.crm.entity;

import java.sql.Timestamp;

import org.coraframework.bean.valid.CheckField;
import org.coraframework.json.annotation.JSONField;
import org.coraframework.orm.Entity;
import org.coraframework.orm.annotation.Column;
import org.coraframework.orm.annotation.Table;

/**
 * 跟进状态
 *
 * @Author: liuzhen (liuxing521a@163.com)
 * @Date: 20/4/13 上午9:08
 */
@Table(value="t_track_status", comment="跟进状态", multi=true)
public class TrackStatus extends Entity {

	private static final long serialVersionUID = -8541116847567868076L;

	protected TrackStatus(String id) {
        super(id);
        this.sort = 30;
    }

    @CheckField("状态名称不能为空")
    @Column(comment = "状态名")
    private String  name;

    @Column(comment = "状态顺序排名")
    private int sort;

    @JSONField(serialize = false)
    @Column(comment = "逻辑删除")
    private boolean deleted;


	public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


    public boolean isDeleted() {
		return deleted;
	}

	public void setDeleted(boolean deleted) {
		this.deleted = deleted;
	}

	public int getSort() {
        return sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }

    @JSONField(serialize = false)
    @Override
    public Timestamp getCreateTime() {
        return super.getCreateTime();
    }
}
